﻿// JScript 文件
function Search()
{
    var TimeFrom="";
    var o_tf=document.getElementById("DateFrom");
    if(o_tf.value!="起始时间"&&o_tf.value.length>0)
    {
        TimeFrom=o_tf.value;
    }
    var TimeEnd="";
    var o_te=document.getElementById("DateEnd");
    if(o_te.value!="终止时间"&&o_tf.value.length>0)
    {
        TimeEnd=o_te.value;
    }
    if(document.getElementById("tmpImg")!=null)
    {
        document.getElementById("tmpImg").style.display="block";
    }
    else
    {
        document.getElementById("UpDownList").innerHTML="<div>数据加载中......<img  src=\"../images/ajax-loader.gif\" /></div>";
    }
     $j.post("../Handler/UpDownHandler.ashx", { TimeFrom:TimeFrom,TimeEnd:TimeEnd},
        function(data){ 
            document.getElementById("UpDownList").innerHTML= data;
        }
    );   
}
function LoseFocus(obj,str)
{    
    if(obj.value.length<1)
    {
        obj.value=str;
    }
}
function loadTime(obj1,obj2,str)
{
     if(obj1.value==str)
        {
            obj1.value="";
            getDateString(obj1,obj2);
        }
        else
        {
            getDateString(obj1,obj2);
        }
}